
import 'package:flutter/material.dart';

class MsgPage extends StatefulWidget {

  const MsgPage({Key? key}) : super(key: key);

  @override
  _MsgPageState createState() => _MsgPageState();
}

class _MsgPageState extends State<MsgPage> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: MsgBody(),
      ),
    );
  }
}

class MsgBody extends StatefulWidget {
  const MsgBody({Key? key}) : super(key: key);

  @override
  _MsgBodyState createState() => _MsgBodyState();
}

class _MsgBodyState extends State<MsgBody> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        SizedBox(height: 300,),
        ElevatedButton(onPressed: (){}, child: Text('消息msg')),
      ],
    );
  }
}
